package com.example.cbl;
import androidx.annotation.DrawableRes;

/**
 * 消息数据模型：
 *  - iconResId：对应放到 res/drawable 下的 icon 文件（如 cainiao.png 等）
 *  - title：消息标题
 *  - subtitle：消息副标题（简短描述）
 *  - time：比如 “10:11”，如果为空则显示静音图标
 *  - showRedDot：是否需要显示红色小圆点
 */
public class MessageItem {
    private @DrawableRes int iconResId;
    private String title;
    private String subtitle;
    private String time;
    private boolean showRedDot;

    public MessageItem(int iconResId, String title, String subtitle, String time, boolean showRedDot) {
        this.iconResId = iconResId;
        this.title = title;
        this.subtitle = subtitle;
        this.time = time;
        this.showRedDot = showRedDot;
    }

    public int getIconResId() {
        return iconResId;
    }
    public String getTitle() {
        return title;
    }
    public String getSubtitle() {
        return subtitle;
    }
    public String getTime() {
        return time;
    }
    public boolean isShowRedDot() {
        return showRedDot;
    }
}

